﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace DCTAccess.Business.History
{
    public class WebHistoryAdmin
    {
        private int _historyID = -1;
        private int _adminID = -1;
        private int _historyTypeID = -1;
        private string _historyDate = string.Empty;
        private string _description = string.Empty;

        #region Public Properties
        public int HistoryID
        {
            get { return _historyID; }
            set { _historyID = value; }
        }
        public int AdminID
        {
            get { return _adminID; }
            set { _adminID = value; }
        }
        public int HistoryTypeID
        {
            get { return _historyTypeID; }
            set { _historyTypeID = value; }
        }
        public string HistoryDate
        {
            get { return _historyDate; }
            set { _historyDate = value; }
        }
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        #endregion

        public WebHistoryAdmin(DataRow row)
        {
            HistoryID = int.Parse(row["HistoryID"].ToString());
            AdminID = int.Parse(row["AdminID"].ToString());
            HistoryTypeID = int.Parse(row["HistoryTypeID"].ToString());
            HistoryDate = row["HistoryDate"].ToString();
            Description = row["Description"].ToString();
        }

        public WebHistoryAdmin() { }
    }
}
